package com.dingding.order.facade.special;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.common.core.beans.special.UserspecialorderT;
import com.dingding.order.common.dto.special.ReqGetSpecialOrdertByIdDTO;
import com.dingding.order.core.special.biz.ISpecialOrdertService;

/**
 * 
 * @ClassName: UserSpecialOrdertFacadeImpl 
 * @Description: 专车临时订单服务接口实现类
 * @author YHQ
 * @date 2016年12月8日 上午10:12:24
 * @since V2.5.7
 * 
 */
@Component("userSpecialOrdertFacade")
public class UserSpecialOrdertFacadeImpl implements IUserSpecialOrdertFacade{

	@Resource(name = "specialOrdertService")
	private ISpecialOrdertService specialOrdertService;
	
	/**
	 * 
	 * @Title: getSpecialOrdertById 
	 * @Description: 根据订单Id获取专车临时订单
	 * @param reqGetSpecialOrdertByIdDTO 获取专车临时订单请求Bean
	 * @author YHQ 
	 * @since V2.5.7
	 * @return UserspecialorderT    返回类型
	 * 
	 */
	@Override
	public UserspecialorderT getSpecialOrdertById(ReqGetSpecialOrdertByIdDTO reqGetSpecialOrdertByIdDTO) {
		
		return specialOrdertService.getUserSpecialOrdert(reqGetSpecialOrdertByIdDTO);
	}

	/**
	 * 
	 * @Title: updateSpecialOrderById 
	 * @Description: 修改订单临时变数据 
	 * @param userspecialorderT 要修改的订单信息
	 * @author YHQ 
	 * @since V2.5.7
	 * @return Boolean    返回类型
	 * 
	 */
	@Override
	public Boolean updateSpecialOrder(UserspecialorderT userspecialorderT) {
		
		return specialOrdertService.updateSpecialOrder(userspecialorderT);
	}

}
